home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
WindowProxy.h
< prev
next >
Wrap
Text File
|
1997-09-08
|
2KB
|
75 lines
/*
* File: WindowProxy.h
* Summary: A stand in for TWindow that behaves better when it's being edited.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/24/96 JDJ Created
*/
#pragma once
#include <ZWindow.h>
#include "ResourceMap.h"
// ===================================================================================
// class CWindowProxy
// ===================================================================================
class CWindowProxy : public TWindow {
typedef TWindow Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CWindowProxy();
CWindowProxy(const SWindowInfo& info, MCommander* superCommander);
static MReanimatable* Create(MReanimatable* parent);
protected:
CWindowProxy();
//-----------------------------------
// TWindow API
//
public:
virtual void HandleClick(const TMouseEvent& globalEvent, short partCode);
virtual void SetInfo(const SWindowInfo& info);
protected:
virtual void Invariant() const;
virtual void OnOpen();
virtual SWindowAttr GetAttributes() const {return mOldAttributes;}
virtual void OnStreamOut(TOutStream& stream) const;
virtual void DoClickInGrow(const TMouseEvent& globalEvent);
//-----------------------------------
// MReanimatable API
//
protected:
virtual void OnReanimated();
//-----------------------------------
// Member data
//
public:
static bool msUseProxy;
protected:
SWindowAttr mOldAttributes;
};